home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
text
/
font
/
ttfr.readme
< prev
Wrap
Text File
|
2000-11-01
|
3KB
|
77 lines
Short: Rename true type fonts file correctly
Author: James S.Perrin <james.perrin@ntlworld.com>
Uploader: James S.Perrin <james.perrin@ntlworld.com>
Version: 1.0
Type: text/font
What Is It?
This program searches a True Type font for the font name given within
the file and renames the file to it. Spaces are removed from the finally
name.
Why?
After downloading a few TT fonts I found they often had daft name like
GIB_____.ttf presumably to keep M$DOS users happy. I saw the pfbr program
on the aminet that does exactly the same for PostScript Type1 fonts and
thought it should be equally straight forward, doh!
Installation
Stick in C:
Usage
ttfr <ttf_files>
I suggest you rename your file BEFORE you install them with ttfmanager as it
uses the filenames, If you've already installed them the ony thing to do is
delete the generated files (.font .otag) an reinstall.
NOTE: the binary was compiled with libnix which doesn't support wild cards,
if you want to use wild cards I suggest you recompile with ixemul which you
must then obviously have installed.
Bugs
Seems to work fine for me but I've kludged the unicode reading by assuming
its a western/latin coding ie only the second byte of the word is used, so
it won't work if your font has a name in japanese characters. Character
encoding is not something I particularly understand (or want to), so if you
can send me a patch I'll be happy to update. Also I've assumed the M$ form of
TrueType which has a different way of specifying which character encoding is
used from Apple (this just the encoding for strings in the file not the actual
font!)
Anecdote
Since there was no docs for ttflib (it probably has a function for getting
the font name) and I thought it would be easy as for PS Type 1 to search for
the font name (hence I didn't use the freetype library) I decided to write this
from scratch. Neither M$ or Apple seem to think that "truetype" is a good
enough keyword to get to the actual pages containing the truetype
specification. I spent as much time looking for the docs as I did reading them
and writting the program.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
9232 5556 39.8% 06-Aug-00 15:16:38 +ttfr
3980 1294 67.4% 01-Aug-00 00:23:14 +ttfr.c
2110 1107 47.5% 16-Sep-00 23:21:32 +ttfr.readme
9232 5556 39.8% 06-Aug-00 15:16:38 ttfr
3980 1294 67.4% 01-Aug-00 00:23:14 ttfr.c
2110 1106 47.5% 23-Sep-00 12:28:16 ttfr.readme
-------- ------- ----- --------- --------
30644 15913 48.0% 04-Oct-100 05:00:18 6 files